/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Insets;

/**
 *
 * @author Administrator
 */
public class RBrowseTextField extends RTextField {
    Image imageRover = Util.getUserImage("resources/RightArrowRover.png");
    Image imageIcon = Util.getUserImage("resources/RightArrowIcon.png");
    int drawX, drawY, drawWidth, drawHeight;
    
    public void RBrowseTextField () {
        

    }

    @Override
    protected void paintComponent(Graphics g) {

        drawWidth = (getHeight() - 10) / 2;
        drawHeight = getHeight() - 10;
        drawX = getWidth() - drawWidth - 6;
        drawY = 5;
        
        setMargin(new Insets(1, 4, 1, drawWidth + drawY * 2));        
        
        super.paintComponent(g);
        
        g.drawImage(imageRover, drawX, drawY, drawWidth, drawHeight, this);
    }
}
